<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">第三方用户</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this"><a>{:lang('USER_OAUTHADMIN_INDEX')}</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form method="post" class="js-ajax-form layui-form">
                                        <table class="layui-table">
                                            <thead>
                                                <tr>
                                                    <th>ID</th>
                                                    <th>{:lang('USER_FROM')}</th>
                                                    <th>{:lang('AVATAR')}</th>
                                                    <th>{:lang('BINGDING_ACCOUNT')}</th>
                                                    <th>{:lang('FIRST_LOGIN_TIME')}</th>
                                                    <th>{:lang('LAST_LOGIN_TIME')}</th>
                                                    <th>{:lang('LAST_LOGIN_IP')}</th>
                                                    <th>{:lang('LOGIN_TIMES')}</th>
                                                    <th align="center">{:lang('ACTIONS')}</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <foreach name="lists" item="vo">
                                                    <tr>
                                                        <td>{$vo.id}</td>
                                                        <td>{$vo.third_party}</td>
                                                        <td><img width="25" height="25" src="{$vo.avatar}" /></td>
                                                        <td>{$vo.user_nickname}</td>
                                                        <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
                                                        <td>{:date('Y-m-d H:i:s',$vo['last_login_time'])}</td>
                                                        <td>{$vo.last_login_ip}</td>
                                                        <td>{$vo.login_times}</td>
                                                        <td>
                                                            <a href="{:url('adminOauth/delete',array('id'=>$vo['id']))}" class="js-ajax-delete layui-btn layui-btn-danger layui-btn-xs">{:lang('DELETE')}</a>
                                                        </td>
                                                    </tr>
                                                </foreach>
                                            </tbody>
                                        </table>
                                        <ul class="layui-laypage">{$page}</ul>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
        <include file="public@footer" />
</body>

</html>